#  Project: War Time Military Service Can Affect Partisan Preferences
#  Last updated: November 8,2022
#  Purpose: Download INES data for analyses into raw_data folder
#  Outputs: 
#  Machine: Chagai's macbook pro



# Download INES data from Chagai Weiss's Dropbox------

# This script downloads data from the INES elections studies for the following 
# years: 1973, 1977,1981, 1984, 1988, 1992, 1996, 1999, 2001, 2003, 2006, 2009, 
# 2003, 2006, 2009, 2013, 2015, 2019.
# If preferred, data can be downloaded directly from:
# https://www.tau.ac.il/~ines

# Download 2019 INES
download.file("https://dl.dropboxusercontent.com/s/fpibzfu77mno2cn/2019.dta?dl=0",
              "raw_data/2019.dta")

# Download 2015 INES
download.file("https://dl.dropboxusercontent.com/s/epomkt5u13gvkeb/2015.dta?dl=0",
              "raw_data/2015.dta")

# Download 2013 INES
download.file("https://dl.dropboxusercontent.com/s/wjfyn15ullnvjwd/2013.dta?dl=0",
              "raw_data/2013.dta")

# Download 2009 INES
download.file("https://dl.dropboxusercontent.com/s/er9265b8sdjkopq/2009.dta?dl=0",
              "raw_data/2009.dta")

# Download 2006 INES
download.file("https://dl.dropboxusercontent.com/s/tgc0jo200i35wua/2006.dta?dl=0",
              "raw_data/2006.dta")

# Download 2003 INES
download.file("https://dl.dropboxusercontent.com/s/ts6nwiyb1rruuq2/2003.dta?dl=0",
              "raw_data/2003.dta")

# Download 2001 INES
download.file("https://dl.dropboxusercontent.com/s/v2cup77jsmtwvtc/2001.dta?dl=0",
              "raw_data/2001.dta")

# Download 1999-1 INES
download.file("https://dl.dropboxusercontent.com/s/6lp8dyev760tmja/1999-1.dta?dl=0",
              "raw_data/1999-1.dta")

# Download 1999-2 INES
download.file("https://dl.dropboxusercontent.com/s/se4gub8krw5w55f/1999-2.dta?dl=0",
              "raw_data/1999-2.dta")

# Download 1996 INES
download.file("https://dl.dropboxusercontent.com/s/2zil6cqkhyqbx6r/1996j.dta?dl=0",
              "raw_data/1996j.dta")

# Download 1992 INES
download.file("https://dl.dropboxusercontent.com/s/jicsdsx2y6d13uk/1992.dta?dl=0",
              "raw_data/1992.dta")


# Download 1988A INES
download.file("https://dl.dropboxusercontent.com/s/hbd0x6p33xudqx4/1988_N%3D873.dta?dl=0",
              "raw_data/1988_N=873.dta")

# Download 1988B INES
download.file("https://dl.dropboxusercontent.com/s/vfvp5jhynryvy51/1988_Panel_N%3D416.dta?dl=0",
              "raw_data/1988_Panel_N=416.dta")

# Download 1984 INES
download.file("https://dl.dropboxusercontent.com/s/6jsf4sy3755in4e/1984.dta?dl=0",
              "raw_data/1984.dta")

# Download 1981-1 INES
download.file("https://dl.dropboxusercontent.com/s/s8221muxd5omccm/1981-1.dta?dl=0",
              "raw_data/1981-1.dta")

# Download 1981-2 INES
download.file("https://dl.dropboxusercontent.com/s/ss9usj51e5lf15k/1981-2.dta?dl=0",
              "raw_data/1981-2.dta")

# Download 1981-3 INES
download.file("https://dl.dropboxusercontent.com/s/h05jdsa5o53emd9/1981-3.dta?dl=0",
              "raw_data/1981-3.dta")

# Download 1977 INES
download.file("https://dl.dropboxusercontent.com/s/ksicwzy0wqcfd7b/1977-1.dta?dl=0",
              "raw_data/1977-1.dta")





